package com.southwind.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Menu implements Serializable {
    private int id;
    private String name;
    private int parentMenuId;
    private boolean thisRoleMenu;
    private List<Menu> submenuList = new ArrayList<>();
    private Date createdAt;
    private Date updatedAt;

    public Menu() {

    }

    public Menu(int id, String name, int parentMenuId, Date createdAt, Date updatedAt) {
        this.id = id;
        this.name = name;
        this.parentMenuId = parentMenuId;
        this.thisRoleMenu = thisRoleMenu;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParentMenuId() {
        return parentMenuId;
    }

    public void setParentMenuId(int parentMenuId) {
        this.parentMenuId = parentMenuId;
    }

    public boolean isThisRoleMenu() {
        return thisRoleMenu;
    }

    public void setThisRoleMenu(boolean thisRoleMenu) {
        this.thisRoleMenu = thisRoleMenu;
    }

    public List<Menu> getSubmenuList() {
        return submenuList;
    }

    public void setSubmenuList(List<Menu> submenuList) {
        this.submenuList = submenuList;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }
}
